<%= link_to 'Dodaj licencję', new_admin_license_path %>

<table  width=690 border='1' style="border: solid black 1px; margin:10px;">
	<tr>
	  <th>Nazwa</th>
		<th colspan=3>Akcje</th>
	</tr>

	<% for license in licenses %>
	  <tr>
	    <td><%=h license.name %></td>
	    <td><%= link_to 'S', admin_license_path(license) %></td>
	    <td><%= link_to 'E', edit_admin_license_path(license) %></td>
	    <td><%= link_to 'D', admin_license_path(license), :confirm => 'Na pewno usunąć licencję z systemu?', :method => :delete %></td>
	  </tr>
	<% end %>
</table>
